var Base;
Base || (Base = {}), function () {
    $[['support']][['cors']] = !0, Base[['service']] = {
        defaultParams: {
            type: 'POST',
            dataType: 'json',
            contentType: 'application/json; charset=utf-8',
            headers: {},
            params: null,
            async: !0
        }, post: function (a) {
            var e = Base[['service']];
            a[['mask']] && a[['mask']](), $[['ajax']]({
                type: a[['type']] ? a[['type']] : e[['defaultParams']][['type']],
                url: a[['url']],
                data: a[['params']] ? JSON[['stringify']](a[['params']]) : JSON[['stringify']](e[['defaultParams']][['params']]),
                async: null == a[['async']] ? e[['defaultParams']][['async']] : a[['async']],
                dataType: a[['dataType']] ? a[['dataType']] : e[['defaultParams']][['dataType']],
                headers: a[['headers']] ? a[['headers']] : e[['defaultParams']][['headers']],
                contentType: a[['contentType']] ? a[['contentType']] : e[['defaultParams']][['contentType']],
                success: function (e, s, t) {
                    a[['success']] && a[['success']](e), a[['unmask']] && a[['unmask']]();
                },
                error: function (e, s, t) {
                    a[['error']] && a[['error']](e, s, t), a[['unmask']] && a[['unmask']]();
                }
            });
        }
    };
}();